package com.zh.business.modules.sys.domain;

import com.zh.business.base.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;

@ApiModel(value = "SysUser")
@Data
@Table(name = "sys_user")
public class SysUser extends BasicEntity implements Serializable {


    /**
     * 用户名
     */
    @Column(name = "user_name")
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 密码
     */
    @Column(name = "`password`")
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 盐
     */
    @Column(name = "salt")
    @ApiModelProperty(value = "盐")
    private String salt;

    /**
     * 邮箱
     */
    @Column(name = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 手机号
     */
    @Column(name = "mobile")
    @ApiModelProperty(value = "手机号")
    private String mobile;

    /**
     * 状态  0：禁用   1：正常
     */
    @Column(name = "`status`")
    @ApiModelProperty(value = "状态  0：禁用   1：正常")
    private Integer status;

    /**
     * 机构ID
     */
    @Column(name = "dept_id")
    @ApiModelProperty(value = "机构ID")
    private Long deptId;

    private static final long serialVersionUID = 1L;
}
